package net.gcode.sdkscheduleparser.gui;

import java.util.Vector;

import javax.swing.JLabel;
import javax.swing.JProgressBar;
import javax.swing.JTree;

public class Objects {
	private static JProgressBar bar;
	private static JLabel label;
	private static JTree map;
	private static Vector rootNode;

	public static void setValue(int value) {
		if (value >= 0 && value <= 100)
			bar.setValue(value);
	}

	public static void setBar(JProgressBar probar) {
		bar = probar;
	}

	public static void setStatus(String str) {
		label.setText(str);
	}

	public static void setLabel(JLabel labell) {
		label = labell;
	}

	public static JTree getMap() {
		return map;
	}

	public static void setMap(JTree map) {
		Objects.map = map;
	}

	/**
	 * @param rootNode the rootNode to set
	 */
	public static void setRootNode(Vector rootNode) {
		Objects.rootNode = rootNode;
	}

	/**
	 * @return the rootNode
	 */
	public static Vector getRootNode() {
		return rootNode;
	}
}
